﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ListHotels.aspx.cs" Inherits="ListHotels" %>
<%@ Register Namespace="Encosia" Assembly="HighslideImage" TagPrefix="encosia" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="contents">      
		<div class="hotel">
            <img src="img/hotel.png" />
        </div>
        <div class="searchHotel">
            <p class="searchhotel_title">Search All Hanoi Hotel Deals</p>
            <div class="sr">
                <table width="301" cellpadding="4" cellspacing="6">
                <tr>
               	    <td>Arrive :</td>
	                <td>Depart :</td>
                    <td>Night :</td>
                </tr>
                <tr>
                <td>
                    <asp:DropDownList ID="ddlDayDepart" runat="server" 
                        onselectedindexchanged="ddlDayDepart_SelectedIndexChanged" 
                        AutoPostBack="True">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem Value="21"></asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                        <asp:ListItem>25</asp:ListItem>
                        <asp:ListItem>26</asp:ListItem>
                        <asp:ListItem>27</asp:ListItem>
                        <asp:ListItem>28</asp:ListItem>
                        <asp:ListItem>29</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>31</asp:ListItem>
                    </asp:DropDownList>             
                    </td>
                <td>             
                    <asp:DropDownList ID="ddlMonthDepart" runat="server" 
                        onselectedindexchanged="ddlMonthDepart_SelectedIndexChanged" 
                        AutoPostBack="True">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem Value="10"></asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlNight" runat="server" 
                        onselectedindexchanged="ddlNight_SelectedIndexChanged" AutoPostBack="True">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem Value="9"></asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </td>
                </tr>
                
                <tr>
                    <td>Room:</td>
                    <td>Adults:</td>
                    <td>Children (2-11):</td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlRoom" runat="server" 
                            onselectedindexchanged="ddlRoom_SelectedIndexChanged" AutoPostBack="True">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem Value="9"></asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAdult" runat="server" 
                            onselectedindexchanged="ddlAdult_SelectedIndexChanged" AutoPostBack="True">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem Value="9"></asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlChild" runat="server" 
                            onselectedindexchanged="ddlChild_SelectedIndexChanged" AutoPostBack="True">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem Value="9"></asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            </div>
            <div class="check_rate">
                
                <asp:ImageButton ID="btnCheckRates" runat="server" ImageUrl="img/check.png" 
                    onclick="btnCheckRates_Click" />
                
            </div>
        </div>
        <br />

        <div>
            <encosia:HighslideManager ID="HighslideManager1" runat="server" OutlineType="Beveled" ControlBar="true" />
            <asp:DataList ID="DataList3" runat="server" DataKeyField="hotelID">
                <ItemTemplate>
                    <table style="width:100%;">
                        <tr>
                            <td rowspan="5" style="width:100px; height:100px">
                                <%--<asp:ImageButton ID="imgPathLink" runat="server" Height="150px" 
                                    ImageUrl='<%# Eval("pathLink") %>' Width="150px" />--%>
                                    <encosia:HighslideImage ID="imgPathLink" runat="server" Width="150px" Height="150px"
                                        ImageUrl='<%# Eval("pathLink") %>'
                                        FullImageURL='<%# Eval("pathLink") %>'  />
                            </td>
                            <td colspan="2" style="text-align: left">
                                <asp:LinkButton ID="lblHotelName" runat="server" CommandArgument='<%# Eval("hotelID") %>'
                                    Text='<%# Eval("hotelName") %>' Font-Bold="True" ForeColor="Yellow" 
                                    onclick="lblHotelName_Click" Font-Size="Large"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: left">
                                <asp:Image ID="imgStart" runat="server" ImageUrl='<%# Eval("star") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: left">
                                <asp:Label ID="lblAddress" runat="server" Text='<%# Eval("address") %>' 
                                    Font-Italic="True"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                                Phone:
                                <asp:Label ID="lblPhone" runat="server" Text='<%# Eval("phone") %>'></asp:Label>
                            </td>
                            <td style="text-align: right">
                                $<asp:Label ID="lblPrice" runat="server" Text='<%# Eval("price") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: left" valign="top">
                                <asp:Label ID="lblDes" runat="server" Text='<%# Eval("hotelDescription") %>' ></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            <div style="text-align:right">
                <table cellpadding="0" border="0" align="right">
                    <tr>
                        <td align="right">
                            <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" 
                                OnClick="lbtnFirst_Click" ForeColor="Yellow" Font-Size="Medium">First page</asp:LinkButton>
                            &nbsp;
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" 
                                OnClick="lbtnPrevious_Click" ForeColor="Yellow">Previous</asp:LinkButton>&nbsp;&nbsp;
                        </td>
                        <td align="center" valign="middle">
                            <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                OnItemDataBound="dlPaging_ItemDataBound">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                        CommandName="Paging" Text='<%# Eval("PageText") %>' ForeColor="Yellow" 
                                        Font-Size="Medium"></asp:LinkButton>&nbsp;
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                        <td align="left">
                            &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                OnClick="lbtnNext_Click" ForeColor="Yellow" Font-Size="Medium">Next</asp:LinkButton>
                        </td>
                        <td align="left">
                            &nbsp;
                            <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" 
                                OnClick="lbtnLast_Click" ForeColor="Yellow" Font-Size="Medium">Last page</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" align="center" style="height: 30px; text-align:right" valign="middle">
                            <asp:Label ID="lblPageInfo" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>

